/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package database;

/**
 *
 * @author chau
 */
public class UserFamily {

    private String userName1;
    private String userName2;
    private String[] childNames;
    private int[] childGenders;
    private int numberChilds;

    public UserFamily() {
        childGenders = new int[2];
        childNames = new String[2];
    }

    public void setUserName1(String name) {
        userName1 = name;
    }

    public void setUserName2(String name) {
        userName2 = name;
    }

    public void addChildName(String name) {
        if (numberChilds == 2) {
            return;
        }
        childNames[numberChilds] = name;
    }

    public void addChildGender(int gender) {
        if (numberChilds == 2) {
            return;
        }
        childGenders[numberChilds] = gender;
        numberChilds++;
    }

    public int getNumberChild() {
        return numberChilds;
    }
}
